class Message
  def initialize
    @msg = Array.new
  end
  def say(string)
    if @msg.size >= 5
      @msg.shift
    end
    @msg.push(string)
    $screen.refresh
    $screen.draw
  end
  def draw
    @msg.each_with_index do |msg, n|
      setpos $map_height + n + 1, 0
      addstr(msg)
    end
  end
end